package edu.sdibt1;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Test {

	public static void main(String[] args) throws Exception {
		File file=new File("hello.txt");
		FileInputStream input=new FileInputStream(file);
		byte[] b=new byte[128];
		int len;
		while((len=input.read(b))!=-1) {
//			for(int i=0;i<len;i++) {
//				System.out.print((char)b[i]);
//			}
			
			String str=new String(b, 0, len);
			System.out.print(str);
		}
	}
}
